<?php
Route::group('web', function () {
    Route::rule('index/test', 'web/index/test');

    Route::post('admin/login', 'web/admin/login'); //登录

    Route::group('admin', function () {
        Route::rule('modifyPw', 'web/admin/modifyPw');//修改密码
        Route::post('register', 'web/admin/register'); //新增管理员
        Route::post('del', 'web/admin/del'); //删除管理员
        Route::post('adminList', 'web/admin/adminList'); //管理员列表
        Route::post('modifyAdmin', 'web/admin/modifyAdmin'); //管理员列表
    })->middleware('CheckAes', 'checkToken');

    Route::group('menu', function () {
        Route::rule('menuList', 'web/menu/menuList');//菜单列表
        Route::rule('menuModify', 'web/menu/menuModify');//菜单修改
    })->middleware('CheckAes', 'checkToken');

    Route::group('group', function () {
        Route::rule('groupList', 'web/group/groupList');//分组列表
        Route::rule('groupAdd', 'web/group/groupAdd');//分组添加
        Route::rule('groupModify', 'web/group/groupModify');//分组修改
        Route::rule('groupDel', 'web/group/groupDel');//分组删除
    })->middleware('CheckAes', 'checkToken');

    Route::group('log', function () {
        Route::rule('logList', 'web/log/logList');//日志列表
    })->middleware('CheckAes', 'checkToken');
});

